package com.king01.dao;

import com.king01.entity.Branch_goods;
import com.king01.entity.Inlibrary;
import com.king01.entity.Staff;
import com.king01.entity.Storage_volume;
import com.king01.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Branch_goodsDao {

    //查询branch_goods根据goodsid
    public List<Branch_goods> selectById(@Param("goodsid")Integer goodsid,@Param("sessionStaffid")Integer sessionStaffid,@Param("sessionBranchid")Integer sessionBranchid);
    //添加商品信息
    public Integer addGoods(@Param("list") List<Branch_goods> list, @Param("branchid") String branchid);

    //获取新增入库的数据
    public List<Branch_goods> selectByNewAdd(Integer goodsid);

    //新增入库添加数据
    public Integer addBranchGoods(AddBranchDoodsVo addBranchDoodsVo);

    //获取最大的id
    public List<AddBranchDoodsVo> maxId();
    //添加数据到Branch_goods中
    public Integer addByStorage_volume(List<AddBranchDoodsVo> list);
    //查询详细信息的数据
    public List<Storage_volumeVo> selectAll(Integer id);
    //修改审核通过的数据

    //根据branchid和goodsid查询branch_goods
    public Branch_goods findByBG(@Param("branchid")Integer branchid,@Param("goodsid") Integer goodsid);

    public Integer updateByBG(@Param("branchid")Integer branchid,@Param("goodsid")Integer goodsid,@Param("counts")Integer counts);
    //出库管理——添加出库的主表
    public List<AddOutLibraryVo> addOutLibrary(Integer branchid);
}
